package com.codeduck.deploy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author: <a href="mailto:codeduck@163.com">codeduck</a>
 * @date: 2022/11/24
 */
@SpringBootApplication
@MapperScan("com.codeduck.deploy.mapper")
public class WarApp extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(WarApp.class);
    }

    public static void main(String[] args)  {
        SpringApplication.run(WarApp.class, args);
    }
}
